package cn.appsys.pojo;

public class Page {
	private int totalCount; //总的记录数
	private int pagesize; //页面尺寸， 每一页显示的记录数
	private int totalPageCount; //总的页数
	private int currPageNo; // 当前页码
	
	
	public int getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(int totalCount) {
		if(totalCount>0){
			this.totalCount = totalCount;
			//通过总记录数与每页显示的数据行数计算总的页数
			this.totalPageCount=this.totalCount%this.pagesize==0?
			this.totalCount/this.pagesize:this.totalCount/this.pagesize+1;
					
		}
	}
	public int getPagesize() {
		return pagesize;
	}
	public void setPagesize(int pagesize) {
		this.pagesize = pagesize;
	}
	public int getTotalPageCount() {
		return totalPageCount;
	}
	public void setTotalPageCount(int totalPageCount) {
		this.totalPageCount = totalPageCount;
	}
	public int getCurrPageNo() {
		return currPageNo;
	}
	public void setCurrPageNo(int currPageNo) {
		this.currPageNo = currPageNo;
	}
	
	

}
